package com.ea.eadp.nexus.test.pageDefinition.console3;

import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;

public class OriginAccountPage extends ConsoleBasePage {
    public static final String emailInputBox = "email";

    public OriginAccountPage(WebDriver driver) {
        super(driver, OriginAccountPage.class, emailInputBox);
    }

    public void enterEmail(String email) {
        log.info("Enter Email:" + email);
        sendInput(emailInputBox, email);
        clickBlank("//div[@id='panel-email']//span[@class='title']");
        sendControllerKey(Keys.TAB);
        sendControllerKey(Keys.TAB);
        sendControllerKey('A');
    }
}